/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edu.cs576.HyperLinkVideo.authoringtool;

/**
 *
 * @author Ludo
 */
public class TrackingArea {
    //coordinates of track area
    private int[] xPoints;
    private int[] yPoints;
    
    public TrackingArea(){
        
    }
    
    public TrackingArea(int[] xs, int [] ys){
        xPoints = xs;
        yPoints = ys;
    }
    
    public void setTopLeftAndBottomRight(int[] topLeft, int bottomRight[]){
        xPoints = new int[]{topLeft[0], bottomRight[0], bottomRight[0], topLeft[0]};
        yPoints = new int[] {topLeft[1], topLeft[1], bottomRight[1], bottomRight[1]};
    }
    
    public void setXPoints(int[] xs){
        xPoints = xs;
    }
    
    public void setYPoints(int[] ys){
        yPoints = ys;
    }
    
    public int[] getXPoints(){
        return xPoints;
    }
    
    public int[] getYPoints(){
        return yPoints;
    }
    public int[] getTopLeft(){
        return new int[]{xPoints[0],yPoints[0]};
    }
    
    public int[] getBottomRight(){
        return new int[]{xPoints[2],yPoints[2]};
    }
}
